import ajax from '@/utils/ajax';
export default {

  // 项目列表-增减项关联
  allowAssociatedProjects(data) {
    return ajax({
      url: '/projects/allowAssociatedProjects',
      method: 'get',
      data
    })
  },
  // 获取增减项列表
  getChangeList(data) {
    return ajax({
      url: '/preSettlement/getChangeList',
      method: 'get',
      data
    })
  },
  // 添加增减项
  applyChangeItems(data) {
    return ajax({
      url: '/projects/applyChangeItems',
      method: 'post',
      data
    })
  },

  // 增减项详情
  getChangeDetails(data) {
    return ajax({
      url: '/preSettlement/getChangeDetails',
      method: 'get',
      data
    })
  },
  // 重新分配造价员
  changeItemsAssignCostEstimator(data) {
    return ajax({
      url: '/projects/changeItemsAssignCostEstimator',
      method: 'post',
      data
    })
  },
  // 出具造价单
  issueChangeQuotation(data) {
    return ajax({
      url: '/projects/issueChangeQuotation',
      method: 'post',
      data
    })
  },
  // 造价单审核通过
  changeQuotationPassed(data) {
    return ajax({
      url: '/projects/changeQuotationPassed',
      method: 'post',
      data
    })
  },
  // 造价单审核拒绝
  changeQuotationRejected(data) {
    return ajax({
      url: '/projects/changeQuotationRejected',
      method: 'post',
      data
    })
  },
  // 提交增项支付凭证
  submitChangeVouchers(data) {
    return ajax({
      url: '/projects/submitChangeVouchers',
      method: 'post',
      data
    })
  },
  // 确认增项凭证
  confirmChangeVouchers(data) {
    return ajax({
      url: '/projects/confirmChangeVouchers',
      method: 'post',
      data
    })
  },
  // 驳回增项凭证
  refuseChangeVouchers(data) {
    return ajax({
      url: '/projects/refuseChangeVouchers',
      method: 'post',
      data
    })
  },
  // 增减项作废
  changeInvalidation(data) {
    return ajax({
      url: '/projects/changeInvalidation',
      method: 'post',
      data
    })
  },
}